package com.gestocasa.model;

import java.util.Vector;

public class LoggerRegisters {

	private Area area;
	private Configuration configuration;
	private Vector<Register> registers;
	
	public LoggerRegisters() {
		this(null);
	}

	public LoggerRegisters(LoggerRegisters loggerRegister) {
		this((loggerRegister != null) ? loggerRegister.getArea() : null, 
			(loggerRegister != null) ? loggerRegister.getConfiguration() : null, 
			(loggerRegister != null) ? loggerRegister.getRegisters() : null);	
	}
	
	public LoggerRegisters(Area area, Configuration configuration) {
		this(area, configuration, null);
	}
	
	public LoggerRegisters(Area area, Configuration configuration, Vector<Register> registers) {
		this.area = area;
		this.configuration = configuration;
		
		this.registers = new Vector<Register>();
		if(registers != null)  {
			for(Register register : registers) {
				this.registers.add(new Register(register));
			}
		}
	}
	
	public Area getArea() {
		return area;
	}

	public void setArea(Area area) {
		this.area = area;
	}
	
	public Configuration getConfiguration() {
		return configuration;
	}

	public void setConfiguration(Configuration configuration) {
		this.configuration = configuration;
	}

	public Vector<Register> getRegisters() {
		return registers;
	}

	public void setRegisters(Vector<Register> registers) {
		this.registers = registers;
	}
}
